package PLCSymbolAndScope.PLCSymbols;

import PLCSymbolAndScope.PLCSymbols.PLCBaseClassDeclSymbol;

import java.util.ArrayList;

public class PLCFBDeclSymbol extends PLCBaseClassDeclSymbol {
    //基类的定义
    public PLCBaseClassDeclSymbol baseClass;

    //返回值声明标识符
    public ArrayList<PLCVariable> returnVars = new ArrayList<>();

    //入参符号
    public ArrayList<PLCVariable> inVars = new ArrayList<>();

    //出入参符号
    public ArrayList<PLCVariable> inOutVar;

    public PLCFBDeclSymbol(){
        super();
    }
    public PLCFBDeclSymbol(String name, int rowNum){
        super(name, rowNum);
    }

    public void addReturnVar(PLCVariable returnVar){
        this.returnVars.add(returnVar);
    }

    public void addInVar(PLCVariable inVar){
        this.inVars.add(inVar);
    }
}
